package com.ctgu.service;

import com.ctgu.dao.OrderMapper;
import com.ctgu.entity.Orders;
import com.ctgu.entity.Product;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl implements OrderService{

    @Autowired
    private OrderMapper orderMapper;

    @Override
    public List<Orders> findAll(int user_id) { return orderMapper.findAll(user_id);}

    @Override
    public Integer deleteOrderById(Integer id) { return orderMapper.deleteOrderById(id); }
}
